#include "swpstakeholdergraphicitem.h"

#include "graphicitemcommon.h"

using namespace core;
using namespace swp;

SwpStakeholderGraphicItem::SwpStakeholderGraphicItem(const QString& stakeholderName,
    QGraphicsItem* parent) : SwpEntityGraphicItem(
        stakeholderName.isEmpty() ? QObject::tr("stakeholder") :
            stakeholderName, QObject::tr("stakeholder"), parent)
{

}

SwpStakeholderGraphicItem::~SwpStakeholderGraphicItem()
{

}

int SwpStakeholderGraphicItem::type() const
{
    return SWP_STAKEHOLDER_ITEM;
}

QString SwpStakeholderGraphicItem::name() const
{
    return QObject::tr("Stakeholder");
}

IEditorItem* SwpStakeholderGraphicItem::copy() const
{
    return new SwpStakeholderGraphicItem(m_entityName, 0);
}
